package com.liuxing.doctor.service.impl;

import com.liuxing.doctor.entity.InspectionItem;
import com.liuxing.doctor.mapper.InspectionItemMapper;
import com.liuxing.doctor.service.InspectionItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 行柳
 * 学习使用
 */
@Service
public class InspectionItemServiceImpl implements InspectionItemService {
    @Resource
    private InspectionItemMapper inspectionItemMapper;
    @Override
    public InspectionItem queryByExecutiveDivision(String executiveDivision) {
        return inspectionItemMapper.selectByExecutiveDivision(executiveDivision);
    }

    @Override
    public List<InspectionItem> queryAll() {
        return inspectionItemMapper.selectAll();
    }

    @Override
    public InspectionItem queryByInspectionItemId(String inspectionItemId) {
        return inspectionItemMapper.selectByInspectionItemId(inspectionItemId);
    }

    @Override
    public InspectionItem queryByInspectionItemName(String inspectionItemName) {
        return inspectionItemMapper.selectByInspectionItemName(inspectionItemName);
    }
}
